Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage.go: Make query tikv for ddl too #757

Merged
merged 4 commits into from
Sep 30, 2019

Conversation

july2993
Copy link
Contributor

What problem does this PR solve?

Call CleanUp cmp for ddl binlog too.
may get the txn status from tikv or skip the binlog.

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
    Code changes

Side effects

Related changes

@july2993
Copy link
Contributor Author

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

2 similar comments
@july2993
Copy link
Contributor Author

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

@july2993
Copy link
Contributor Author

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@july2993
Copy link
Contributor Author

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

pump/storage/storage.go Outdated Show resolved Hide resolved
Co-Authored-By: Ian <ArGregoryIan@gmail.com>
return true
err = a.metadata.Put(encodeTSKey(req.ts()), pointer, nil)
if err != nil {
log.Error("put into metadata failed", zap.Error(req.err))
Copy link
Collaborator

@IANTHEREAL IANTHEREAL Sep 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.Error("put into metadata failed", zap.Error(req.err))
log.Error("put missing binlog into metadata failed", zap.Int64("start ts", startTS),
zap.Uint64("commit ts", status.CommitTS()),
zap.Bool("isDDL", pbinlog.GetDdlJobId() > 0)),
zap.Error(req.err))

@IANTHEREAL
Copy link
Collaborator

Rest LGTM

@july2993
Copy link
Contributor Author

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

1 similar comment
@IANTHEREAL
Copy link
Collaborator

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

@IANTHEREAL
Copy link
Collaborator

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

Copy link
Collaborator

@IANTHEREAL IANTHEREAL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@suzaku
Copy link
Contributor

suzaku commented Sep 30, 2019

/rebuild

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zyxbest
Copy link
Contributor

zyxbest commented Sep 30, 2019

/run-integration-tests

1 similar comment
@zyxbest
Copy link
Contributor

zyxbest commented Sep 30, 2019

/run-integration-tests

@july2993
Copy link
Contributor Author

/run-all-tests tidb=release-3.0 tikv=release-3.0 pd=release-3.0

@july2993 july2993 merged commit e4e2660 into pingcap:master Sep 30, 2019
@july2993 july2993 deleted the hjh/ddl_query branch September 30, 2019 04:59
july2993 added a commit to july2993/tidb-binlog that referenced this pull request Oct 9, 2019
july2993 added a commit that referenced this pull request Oct 10, 2019
* storage.go: Make query tikv for ddl too (#757)

Co-Authored-By: Ian <ArGregoryIan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants